#include<stdio.h>
int main()
{
	int n = 0;
	scanf_s("%d", &n);
	int i = 0;
	int s = 0;
	int t = 0;
	for (i = 1;i <= n; i++)
	{
		for (s = 1; s <= i + 1; s++)
		{
			for (t = 1; t <= n+1-s; t++)
			{
				printf(" ");
			}
			for (t = 1; t <= 2 * s - 1; t++)
			{
				printf("*");
			}
			printf("\n");
		}
	}
	return 0;
}